package com.icbc.springcloud.service.Impl;

import com.icbc.springcloud.pojo.Dept;
import com.icbc.springcloud.dao.DeptDao;
import com.icbc.springcloud.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptDao mapper;

    @Override
    public boolean insertDept(Dept dept) {
        return mapper.insertDept(dept);
    }

    @Override
    public Dept queryById(int deptNu) {
        return mapper.queryById(deptNu);
    }

    @Override
    public List<Dept> queryAll() {
        return mapper.queryAll();
    }
}
